<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./modules/page/default_footer.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  This class shows how to create a footer from
 *  the abstract footer class.
 */

require_once("./modules/page/footer.php");
 
class Default_footer extends Footer
{
    public $Copyright;
    private $Page_list;
    
    public function __construct()
    {
        $this->Copyright = Settings::copyright_message;
    }
    public function Render()
    {
        print <<<EOF

        <!-- Footer -->
        <div id="footer">
            <div class="copyright">
                <p>{$this->Copyright}</p>
            </div>
EOF;
        if(isset($this->Page_list))
        {
            print <<<EOF

            <div class="pages">
                <p>{$this->GetPageList()}</p>
            </div>    
EOF;
        }
        print<<<EOF
            
        </div>
        <!-- Footer end -->
EOF;
    }
    
    public function SetPageList(PageList $pl)
    {
        //foreach($page  in$pl)
        {
            //create a format here
        }
    }
    
    private function GetPageList()
    {
        return $this->Page_list;
    }
}
?>